<?php
header("Content-Type: text/html; charset=utf-8");

require_once 'class/utf8_chinese.class.php';
$c = new utf8_chinese;

//UTF8繁体转简体
$str = "中華人民共和國萬歲 ";
$str_gb2312 = $c->big5_gb2312($str);

echo "原文： $str <br /> ";
echo "转换为简体后：$str_gb2312 <br /> " ;

